export const transformStyle = (style) => {
  const transformPx = ['width', 'height', 'top', 'left']
  for (const key in style) {
    if (transformPx.includes(key)) {
      style[key] = style[key] + 'px'
    }
  }
  return style
}
